﻿using System;

namespace Framework.Validation
{
    /// <summary>
    /// Declare interface for <see cref="IValidationResult" /> factory.
    /// </summary>
    public interface IValidationResultFactory
    {
        /// <summary>
        /// Creates <see cref="IValidationResult"/> instance.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="target">The target.</param>
        /// <param name="validator">The validator.</param>
        IValidationResult Create(string message, object target, IValidator validator);
    }
}
